<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSVoucherInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::create('s_voucher_info', function (Blueprint $table) {
            $table->increments('id');

            $table->string('title')->comment("标题");
            $table->integer('voucher')->comment("抵扣价格")->default(0);
            $table->string('desc')->comment("备注");

            $table->integer('user_id')->comment("用户id");
            $table->integer('admin_id')->comment("最后操作人");

            $table->dateTime('use_time')->comment("使用时间");

            $table->timestamps();
            $table->SoftDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
